﻿<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>大连华信全渠道运营管理平台</title>

    <!-- ======基础样式开始======-->
    <link href="/assign/admin/css/bootstrap/style.default.css" rel="stylesheet">
    <!--换肤-->
    <link href="/assign/admin/css/bootstrap/style.katniss.css" rel="stylesheet">
    <!--IE8兼容样式-->
    <link href="/assign/admin/css/bootstrap/navigateLowerIE8.css" rel="stylesheet">
    <!-- ======基础样式结束======-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
  <script src="js/bootstrap/html5shiv.js"></script>
  <script src="js/bootstrap/respond.min.js"></script>
  <![endif]-->
</head>

<body class="signin">
    <section>
        <div class="signinpanel">
            <div class="row">
                <div class="col-md-7">
                    <div class="signin-info">
                        <div class="logopanel">
                            <h1><img src="images/dhc-logo-inverse.png" alt="" />管理平台 </h1>
                        </div>
                        <!-- logopanel -->
                        <div class="mb20"></div>
                        <h5><strong>欢迎登录运营管理平台</strong></h5>
                    </div>
                    <!-- signin0-info -->
                </div>
                <!-- col-sm-7 -->

                <div class="col-md-5">
                    <h4 class="nomargin">登录</h4>
                    <p class="mt5 mb20">请输入您的帐号密码登录。</p>

                    <input type="text" id="name" class="form-control" style="margin-top:15px;" placeholder="用户名" />
                    <input type="password" id="password" class="form-control" style="margin-top:15px;" placeholder="密码" />
                    <button class="btn btn-success btn-block btn-login">登录</button>
                </div>
                <!-- col-sm-5 -->
            </div>
            <!-- row -->

            <div class="signup-footer">
                <div class="pull-left">
                    &copy; 2015. 版权所有 <i class="fa fa-copyright"></i>xx股份有限公司
                </div>
                <div class="pull-right">
                    技术支持： <a href="http://www.ynyysc.com.cn" target="_blank">驾云思创</a>
                </div>
            </div>

        </div>
        <!-- signin -->
    </section>

    <script src="/assign/admin/js/bootstrap/jquery-1.11.1.min.js"></script>
    <script src="/assign/admin/js/placeholder.js"></script>
    <script src="/assign/admin/js/layer/layer.js"></script>
    <script type="text/javascript">
        $(".btn-login").click(function() {
            var name = $("#name").val()
            var password = $("#password").val()
            if (name.length < 1) {
                $("#name").focus();
                return false;
            }
            if (password.length < 1) {
                $("#password").focus();
                return false;
            }
            layer.load(1);
            $.post('/admin/login/login', {
                'name': name,
                'password': password
            }, function(data) {
                if (data.status == 0) {
                    layer.msg(data.message);
                    location.href = "/admin/index/index";
                } else {
                    layer.msg(data.message, {
                        time: 1500
                    }, function() {});
                }
                layer.closeAll('loading');
            })
            return false;
        });
    </script>
</body>

</html>